﻿@model WebApp.Models.S_menu

@{
    Layout = "~/Views/Shared/_DialogLayout.cshtml";
}

@using (Html.BeginForm("", "", FormMethod.Post, new { @class = "form-horizontal form-inline", id = "inputform" }))
{
    <div class="dialog-content">
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })

        <input type="hidden" id="Id" value="@Model.Id" />
        <input type="hidden" value="@(Model.Updatetime.HasValue ? Model.Updatetime.Value.ToString("yyyy-MM-dd HH:mm:ss.fff") : "")" class="form-control datafield" data-fieldname="Updatetime" />

        <table cellpadding="3" cellspacing="0" border="0" class="inputform">
            <tr>
                <td class="td-label">分类</td>
                <td class="td-control">
                    @Html.DropDownList("Menukind", ViewBag.MenuKindList as SelectList, new { @class = "form-control datafield", @data_fieldname = "Menukind" })
                </td>
            </tr>
            <tr>
                <td class="td-label">排序</td>
                <td class="td-control">
                    @Html.TextBox("Orderseq", @Model.Orderseq, new { @class = "form-control datafield", @data_fieldname = "Orderseq" })
                </td>
            </tr>
            <tr>
                <td class="td-label">父菜单</td>
                <td class="td-control">
                    @Html.DropDownList("Pmenuid", ViewBag.MenuList as SelectList, new { @class = "form-control datafield", @data_fieldname = "Pmenuid" })
                </td>
            </tr>
            <tr>
                <td class="td-label">菜单ID</td>
                <td class="td-control">
                    @Html.TextBox("Menuid", @Model.Menuid, new { @class = "form-control datafield", @data_fieldname = "Menuid" })
                </td>
            </tr>
            <tr>
                <td class="td-label">菜单名称(简体)</td>
                <td class="td-control">
                    @Html.TextBox("Menuname_zho", @Model.Menuname_zho, new { @class = "form-control datafield", @data_fieldname = "Menuname_zho" })
                </td>
            </tr>
            <tr>
                <td class="td-label">菜单名称(繁体)</td>
                <td class="td-control">
                    @Html.TextBox("Menuname_eng", @Model.Menuname_eng, new { @class = "form-control datafield", @data_fieldname = "Menuname_eng" })
                </td>
            </tr>
            <tr>
                <td class="td-label">URL</td>
                <td class="td-control">
                    @Html.TextBox("Menuurl", @Model.Menuurl, new { @class = "form-control datafield", @data_fieldname = "Menuurl" })
                </td>
            </tr>
            <tr>
                <td class="td-label">图标</td>
                <td class="td-control">
                    @Html.TextBox("Menuiconmiddle", @Model.Menuiconmiddle, new { @class = "form-control datafield", @data_fieldname = "Menuiconmiddle" })
                </td>
            </tr>
            <tr>
                <td class="td-label">状态</td>
                <td class="td-control">
                    @Html.RadioList("Status", Model.Status.ToString(), ViewBag.MenuStatusList as SelectList, new { @class = "form-control datafield", @data_fieldname = "Status" })
                </td>
            </tr>
            @*<tr>
                    <td class="td-label">系统区分</td>
                    <td class="td-control">
                        @Html.RadioList("Tag_1", Model.Tag_1, ViewBag.MenuSystemtypeList as SelectList, new { @class = "form-control datafield", @data_fieldname = "Tag_1" })
                    </td>
                </tr>*@
        </table>
    </div>
    <div class="dialog-footer">
        <button id="btncancel" class="btn btn-small btn-default">取消</button>
        <button id="btnsave" class="btn btn-small btn-primary">保存</button>
    </div>
}

@section scripts{
    <script type="text/javascript" src="~/Scripts/lang_zh_cn2hk.js"></script>
    <script type="text/javascript" src="~/Scripts/app/manage/menu.edit.js?ver=@WebApp.BLL.CommonStr.Ver"></script>
}
